{{ define "content" }}
<article class="article article-tags post-type-list" itemscope="">
  <header class="article-header">
    <h1 itemprop="name" class="hidden-xs">标签: {{ .Title }}</h1>
    <p class="text-muted hidden-xs">共 {{ len .Data.Pages }} 篇文章</p>
    <nav role="navigation" id="nav-main" class="okayNav">
      <ul>
      <li><a href="/tags">All</a></li>
        {{ range $.Site.Taxonomies.tags.ByCount }}
          {{ if .Name }}
            <li><a href="/tags/{{ .Name | urlize}}/"> {{ .Name }}</a>
          {{ end }}
        {{ end}}
      </ul>
    </nav>
  </header>

  <div class="article-body">
    <div class="row">
      {{ range .Pages }}   
      <div class="col-md-6">
        <article class="panel panel-default hover-shadow hover-grow" itemscope itemtype="http://schema.org/BlogPosting">
          <div class="panel-body">
            <div class="article-meta">
              <time>{{.Date.Format  "2006-01-02" }}</time>
            </div>
          <h3 class="article-title" itemprop="name">
            <a class="article-link" href="{{ .URL }}">{{ .Title }}</a>
          </h3>
          </div>
          {{ if .Params.tags }}
            <div class="panel-footer">
            {{ range (first 3 .Params.tags) }}
              <a href="/tags/{{ . }}" class="label label-default mb"> {{ . }}</a>
            {{ end }}
            {{ if gt (len .Params.Tags) 3}}
              <span class="label label-default mb">···</span>
            {{ end }}
            </div>
          {{ end }}
        </article>
      </div>
    {{ end }}
  </div>
</article>
{{ end }}